package com.sgcc.dlsc.monitorredis.model.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Author: 李孟帅
 * @CreateTime: 2019-08-28 08:31
 * @Description: ${Description}
 */
@Data
@ApiModel("NodeInfo:redis节点状态信息对象模型")
public class NodeInfo {

    //时间
    @ApiModelProperty(value = "时间",required = true)
    private String timestamp;
    //      ip
    @ApiModelProperty(value = "ip",required = true)
    private String ip;
    //    端口
    @ApiModelProperty(value = "端口",required = true)
    private Integer port;
    //    主从关系
    @ApiModelProperty(value = "主从关系",required = true)
    private String role;
    //    master的地址
    @ApiModelProperty(value = "master的地址",required = true)
    private String masterHost;
    //    内存
    @ApiModelProperty(value = "内存",required = true)
    private Long usedMemory;
    //    内存带单位
    @ApiModelProperty(value = "内存带单位",required = true)
    private String usedMemoryHuman;
    //    cpu使用率
    @ApiModelProperty(value = "cpu使用率",required = true)
    private Double usedCpuSys;
    //连接的客户端数量
    @ApiModelProperty(value = "连接的客户端数量",required = true)
    private Integer sessions;
    //        redis当前的qps，redis内部较实时的每秒执行的命令数
    @ApiModelProperty(value = "redis当前的qps",required = true)
    private Integer QPS;
    //        db0的key的数量,以及带有生存期的key的数,平均存活时间
    @ApiModelProperty(value = "db0的keys",required = true)
    private String keys;

}
